package net.sasuke.firstapp;

import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;

public class MySessionAttributeListener implements HttpSessionAttributeListener {

   @Override
   public void attributeAdded(HttpSessionBindingEvent se) {
      System.err.println(this + "Attribute added to session: " + se.getName());
   }

   @Override
   public void attributeRemoved(HttpSessionBindingEvent se) {
      System.err.println(this + "Attribute removed from session: " + se.getName());
   }

   @Override
   public void attributeReplaced(HttpSessionBindingEvent se) {
      System.err.println(this + "Attribute replaced in session: " + se.getName());
   }

}
